import { UserSession } from '../types';

export const ChatServiceToken = 'IChatService';

export interface ChatMessage {
  id?: string;
  roomId: string;
  userId: string;
  message: string;
  timestamp?: number;
  status?: string;
}

export interface IChatService {
  sendMessage(roomId: string, message: ChatMessage): Promise<void>;
  joinRoom(roomId: string, user: UserSession): Promise<void>;
  leaveRoom(roomId: string, userId: string): Promise<void>;
  getRoomParticipants(roomId: string): Promise<UserSession[]>;
}
